package com.foreknow.protals.service;


import com.foreknow.protals.dto.PmsProductParam;
import com.foreknow.protals.dto.PmsProductQueryParam;
import com.foreknow.protals.mbg.model.PmsProduct;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface PmsProductService {
    /**
     * 分页查询
     * @param productQueryParam
     * @param pageSize
     * @param pageNum
     * @return
     */
    public List<PmsProduct> list(PmsProductQueryParam productQueryParam, Integer pageSize, Integer pageNum);

    /**
     * 添加商品
     * @param productParam
     * @return
     */
    @Transactional
    public int create(PmsProductParam productParam);

    @Transactional
    public int update(Long id,PmsProductParam productParam);

    /**
     * 批量修改审核的状态
     */

    /**
     * 批量修改上架的状态
     */

    /**
     * 批量修改推荐的状态
     */

    /**
     * 批量删除商品
     */
}
